//入口文件
import Vue from 'vue';

//导入Axios
import axios from 'axios';
import VueAxios from 'vue-axios';
Vue.use(VueAxios, axios);

//导入路由模块
import VueRouter from 'vue-router';
Vue.use(VueRouter);
import router from './router.js';

//导入MUI的样式表
import './lib/mui/css/mui.min.css';

//导入全局mint-UI样式表，否则不生效
import 'mint-ui/lib/style.min.css';
//导入扩展图标的样式表
import './lib/mui/css/icons-extra.css';

// 按需导入mint-UI的组件

import { Header, Swipe, SwipeItem,Button } from 'mint-ui';

Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);

//导入APP根组件
import app from './App.vue';

var vm = new Vue({
  el: '#app',
  render: c => c(app),
  router
});
